package net.mfjassociates.financial.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import net.mfjassociates.financial.server.domain.Trans;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("net.mfjassociates.financial.server.domain.Trans")
@Component
public class TransLocator extends Locator<Trans, Long> {

    public Trans create(Class<? extends net.mfjassociates.financial.server.domain.Trans> clazz) {
        return new Trans();
    }

    public Trans find(Class<? extends net.mfjassociates.financial.server.domain.Trans> clazz, Long id) {
        return Trans.findTrans(id);
    }

    public Class<net.mfjassociates.financial.server.domain.Trans> getDomainType() {
        return Trans.class;
    }

    public Long getId(Trans trans) {
        return trans.getId();
    }

    public Class<java.lang.Long> getIdType() {
        return Long.class;
    }

    public Object getVersion(Trans trans) {
        return trans.getVersion();
    }
}
